﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class Login : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void UserLogin_Authenticate(object sender, AuthenticateEventArgs e)
    {
        //string userStr = "SELECT * FROM tb_user WHERE data_status=1 AND username=@username AND password=@password;";
        //Dictionary<string, string> param = new Dictionary<string, string>();
        //param.Add("@username", UserLogin.UserName);
        //param.Add("@password", UserLogin.Password);
        //DataSet userDs = DBControl.Search(userStr, param);
        //if (userDs.Tables[0].Rows.Count > 0)
        //{
        //    Session["LoginUsername"] = UserLogin.UserName;
        //    Response.Redirect("Main.aspx");
        //}
        //else 
        //{
        //    UserLogin.FailureText = "用户不存在！";   
        //}
    }
}